package zxq.rollcall.course.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import zxq.rollcall.course.entity.SystemTeacherSignTableEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 老师签到记录得表 Mapper 接口
 * </p>
 *
 * @author Yanghu
 * @since 2020-01-22
 */
public interface SystemTeacherSignTableDao extends BaseMapper<SystemTeacherSignTableEntity> {


    @Select("select   id  from SYSTEM_TEACHER_SIGN_TABLE where course_id = #{courseId} order by  id desc limit 0,1")
    Integer queryNewestTeacherId(@Param("courseId") Integer courseId);

}
